// src/composables/useTheme.ts
import { onLoad } from "@dcloudio/uni-app";

export function useTheme() {
  const colorStyle = ref("");

  function loadTheme() {
    colorStyle.value = uni.getStorageSync("viewColor");
  }

  onLoad(() => {
    loadTheme();
  });

  return {
    colorStyle,
  };
}
